<template>
	<view class="scroll">
		<scroll-view scroll-y class="scroll-y" @scrolltolower="pullMore">
			<view>
				<slot></slot>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		methods:{
			pullMore() {
				this.$emit('pullMore')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.scroll{
		flex: 1;
		height: 100%;
		overflow: hidden;
		box-sizing: border-box;
		.scroll-y{
			height: 100%;
			box-sizing: border-box;
		}
	}
</style>
